package excercise;

public class EX05_Q41 {

	public static void main(String[] args) {
		char letter = 'B';
		switch (letter)
		{
		case'A':
		case'a':
			System.out.println("Some kind of A.");
		case'B':
		case'b':
			System.out.println("Some kind of B.");
			break;
		default:
			System.out.println("Something else.");
			break;
		}
		
		// #42
		int count = 0;
		int limit = 10;
		int x = 1;
		int y = 2;
		
		boolean a = (count==0) && (limit<20);
		System.out.println(a); //t
		boolean b = count == 0 && limit <20;
		System.out.println(b); //t
		boolean c = (limit>20)||(count<5);
		System.out.println(c); //t 
		boolean d = !(count == 12);
		System.out.println(d); //t
		boolean e = (count==1)&&(x<y);
		System.out.println(e); //f
		boolean f = (count<10||(x<y));
		System.out.println(f); //t
		boolean g = !(((count<10||(x<y)))&&(count>=0));
		System.out.println(g); //f
		count = 1;
		boolean h = ((limit/count)>7)||(limit<20);
		System.out.println(h); //t
		count = 0;
		boolean i = (limit < 20)||((limit/count)>7);
		System.out.println(i); //t
		count = 1;
		boolean j = ((limit/count)>7) &&(limit < 0);
		System.out.println(j); //f
		count = 0;
		boolean k = (limit < 0) &&((limit/count)>7);
		System.out.println(k);//f
		
		
	}
}




